import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

//获取分机号列表
export function getExtension(data) {
  return request({
    url: '/call/extensions/getExtensions',
    method: 'post',
    data: data
  })
}

//获取指定分机
export function getExtenInfo(extn) {
  return request({
    url: '/call/extensions/getExtenInfo/'+ extn,
    method: 'get'
  })
}
//修改分机
export function editExten(data) {
  return request({
    url: '/call/extensions/editExten',
    method: 'post',
    data: data
  })
}